/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.utfpr.dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class Conexao {

    static EntityManagerFactory emf = null;

    private Conexao() {
    }
    public static EntityManagerFactory getInstance() {
        if(emf == null)
            emf = Persistence.createEntityManagerFactory("BibliotecaEntidadesPU");
        return emf;
    }
}
